import '../request/base_request.dart';
import 'hi_net_adapter.dart';
import 'hi_net_response.dart';

class MockAdapter extends HiNetAdapter {
  @override
  Future<HiNetResponse<T>> send<T>(BaseRequest request) {
    return Future.delayed(const Duration(milliseconds: 1000), () {
      return HiNetResponse(statusCode: 200);
    });
  }
}
